import {View, StyleSheet, Text} from 'react-native';
import React from 'react';
import {getNetInfo} from '../utils/netInfo';
import {useSelector} from 'react-redux';
console.log('getNetInfo', getNetInfo());

const style = StyleSheet.create({
  inputView: {
    flex: 1,
    justifyContent: 'space-between',
    backgroundColor: '#f40',
    padding: 20,
    margin: 10,
  },
  top: {
    flex: 0.3,
    backgroundColor: 'grey',
    borderWidth: 5,
    borderTopLeftRadius: 20,
    borderTopRightRadius: 20,
  },
});
export default function TestInput() {
  const a = useSelector(state => state.user.name);
  return (
    <View style={style.inputView}>
      <View style={style.top}>
        <Text>{a}</Text>
      </View>
    </View>
  );
}
